<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div id="app">
        {{str1}}
        <span>{{str2}}</span>
        <span>{{str1}}</span>
        <ul>
            <li>{{obj.name}}</li>
            <li>{{obj.age}}</li>
            <li>{{arr[0]}}</li>
            <li>{{arr[1]}}</li>
            <li>{{arr[2]}}</li>
        </ul>
    </div>
    <script src="./vue.js"></script>
    <script>
        var app = new Vue({
            // el挂载点 类似预js的queryselect
            // 注意不能挂载在body和html上
            el: "#app",
            data: {
                str1: "喧腾",
                str2: "大傻逼",
                obj: {
                    name: '张三',
                    age: '李四'
                },
                arr: [10, 20, 30],
            },
        });
    </script>
</body>

</html>